<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../../../Servicios%20Web/swObtenerDetalleDocumento/obtenerDocumentoDA.wsdl"/>
      <rootElement name="ViSicdocuCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDocumentoDA"/>
    </source>
    <source type="WSDL">
      <schema location="../../../Servicios%20Web/swObtenerDetalleDocumento/obtenerDocumentosBinariosDA.wsdl"/>
      <rootElement name="ViSicdocubinaCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDocumentosBinariosDA"/>
      <param name="obtenerBinarios_OutputVariable.ViSicdocubinaCollection" />
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../../../Servicios%20Web/swObtenerDetalleDocumento/swObtenerDetalleDocumento.wsdl"/>
      <rootElement name="OBTENERDETALLEDOCUMENTOMR" namespace="http://mincetur.gob.pe/SIC/documento/obtenerDetalleDocumento"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [TUE APR 02 15:34:01 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDocumentoDA"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns3="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:ns4="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerDetalleDocumento/obtenerDocumentosBinariosDA"
                xmlns:ns2="http://mincetur.gob.pe/SIC/documento/obtenerDetalleDocumento"
                xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:client="http://mincetur.gob.pe/SIC/documento/swObtenerDetalleDocumento"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerDetalleDocumento/obtenerDocumentoDA"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDocumentosBinariosDA"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl top ns0 plt wsdl tns ns1 xsd ns3 ns4 ns2 client xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:param name="obtenerBinarios_OutputVariable.ViSicdocubinaCollection"/>
  <xsl:template match="/">
    <ns2:OBTENERDETALLEDOCUMENTOMR>
      <ns2:DOCUMENTO>
        <xsl:attribute name="DES_FEC_CREACION">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:fecCreacion"/>
        </xsl:attribute>
        <xsl:attribute name="DES_TITULO">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:desTitulo"/>
        </xsl:attribute>
        <xsl:attribute name="ID_DOCU">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:idDocu"/>
        </xsl:attribute>
        <xsl:attribute name="DES_STIPODOCU">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:desStipodocu"/>
        </xsl:attribute>
        <xsl:attribute name="DES_TIPODOCU">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:desTipodocu"/>
        </xsl:attribute>
        <xsl:attribute name="DES_PERSCREADOR">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:desPersCreador"/>
        </xsl:attribute>
        <xsl:attribute name="DES_DOCUMENTO">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:desDocu"/>
        </xsl:attribute>
        <xsl:attribute name="COD_IDEN">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:numDocu"/>
        </xsl:attribute>
        <xsl:attribute name="ID_STIPODOCU">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:idStipodocu"/>
        </xsl:attribute>
        <xsl:attribute name="DES_NOTAS">
          <xsl:value-of select="/top:ViSicdocuCollection/top:ViSicdocu/top:desNotas"/>
        </xsl:attribute>
        <xsl:for-each select="$obtenerBinarios_OutputVariable.ViSicdocubinaCollection/ns1:ViSicdocubinaCollection/ns1:ViSicdocubina">
          <ns3:DOCUMENTOBINARIO>
            <xsl:attribute name="COD_DOCUBINA">
              <xsl:value-of select="ns1:codDocubina"/>
            </xsl:attribute>
            <xsl:attribute name="DES_LOCAURI">
              <xsl:value-of select="ns1:desLocauri"/>
            </xsl:attribute>
            <xsl:attribute name="DES_NOMBREAL">
              <xsl:value-of select="ns1:desNombreal"/>
            </xsl:attribute>
            <xsl:attribute name="DES_LOCACACHE">
              <xsl:value-of select="ns1:desLocacache"/>
            </xsl:attribute>
            <xsl:attribute name="DES_FEC_CREACION">
              <xsl:value-of select="ns1:fecCreacion"/>
            </xsl:attribute>
            <xsl:attribute name="FEC_DESDE">
              <xsl:value-of select="ns1:fecDesde"/>
            </xsl:attribute>
            <xsl:attribute name="FEC_HASTA">
              <xsl:value-of select="ns1:fecHasta"/>
            </xsl:attribute>
            <xsl:attribute name="ID_EXTEDOCU">
              <xsl:value-of select="ns1:idExtedocu"/>
            </xsl:attribute>
            <xsl:attribute name="ID_LENGDOCU">
              <xsl:value-of select="ns1:idLengdocu"/>
            </xsl:attribute>
            <xsl:attribute name="NUM_BYTES">
              <xsl:value-of select="ns1:numBytes"/>
            </xsl:attribute>
            <xsl:attribute name="NUM_FOLIOS">
              <xsl:value-of select="ns1:numFolios"/>
            </xsl:attribute>
          </ns3:DOCUMENTOBINARIO>
        </xsl:for-each>
      </ns2:DOCUMENTO>
      <ns2:ERROR>
        <xsl:attribute name="ID_ERROR">
          <xsl:text disable-output-escaping="no">0</xsl:text>
        </xsl:attribute>
        <xsl:attribute name="DES_ERROR">
          <xsl:text disable-output-escaping="no"></xsl:text>
        </xsl:attribute>
        <xsl:attribute name="FEC_ERROR">
          <xsl:text disable-output-escaping="no"></xsl:text>
        </xsl:attribute>
      </ns2:ERROR>
    </ns2:OBTENERDETALLEDOCUMENTOMR>
  </xsl:template>
</xsl:stylesheet>
